using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace KBESerialize
{
    public static class Serialize
    {
        public static byte[] ToJzip(string str)
        {
            return GzipHelper.Compress(Encoding.UTF8.GetBytes(str));
        }

        public static string UnZipJson(byte[] data)
        {
            return Encoding.UTF8.GetString(GzipHelper.Decompress(data));
        }
    }
}
